if __name__ == '__main__':
    dic = {"张三": "天蝎座", "李四": "射手座", "王五": "天秤座"}
    dic["张三"] = "射手座"  # 键存在时修改值
    dic["赵六"] = "射手座"  # 键不存在时添加键值对
    print(dic)